// Jabba-script Document
Offline = {};
Offline.MimeTypes = {};
Offline.registerMimeType = function(extension, mimetype){
	Offline.MimeTypes[extension] = mimetype;
};
Offline.registerMimeType('.zsh','text/x-script.zsh');
Offline.registerMimeType('.zoo','application/octet-stream');
Offline.registerMimeType('.zip','multipart/x-zip');
Offline.registerMimeType('.zip','application/zip');
Offline.registerMimeType('.zip','application/x-zip-compressed');
Offline.registerMimeType('.zip','application/x-compressed');
Offline.registerMimeType('.z','application/x-compressed');
Offline.registerMimeType('.z','application/x-compress');
Offline.registerMimeType('.xyz','chemical/x-pdb');
Offline.registerMimeType('.xwd','image/x-xwindowdump');
Offline.registerMimeType('.xwd','image/x-xwd');
Offline.registerMimeType('.xsr','video/x-amt-showrun');
Offline.registerMimeType('.x-png','image/png');
Offline.registerMimeType('.xpm','image/xpm');
Offline.registerMimeType('.xpm','image/x-xpixmap');
Offline.registerMimeType('.xpix','application/x-vnd.ls-xpix');
Offline.registerMimeType('.xmz','xgl/movie');
Offline.registerMimeType('.xml','text/xml');
Offline.registerMimeType('.xml','application/xml');
Offline.registerMimeType('.xm','audio/xm');
Offline.registerMimeType('.xlw','application/x-msexcel');
Offline.registerMimeType('.xlw','application/x-excel');
Offline.registerMimeType('.xlw','application/vnd.ms-excel');
Offline.registerMimeType('.xlw','application/excel');
Offline.registerMimeType('.xlv','application/x-excel');
Offline.registerMimeType('.xlv','application/excel');
Offline.registerMimeType('.xlt','application/x-excel');
Offline.registerMimeType('.xlt','application/excel');
Offline.registerMimeType('.xls','application/x-msexcel');
Offline.registerMimeType('.xls','application/x-excel');
Offline.registerMimeType('.xls','application/vnd.ms-excel');
Offline.registerMimeType('.xls','application/excel');
Offline.registerMimeType('.xlm','application/x-excel');
Offline.registerMimeType('.xlm','application/vnd.ms-excel');
Offline.registerMimeType('.xlm','application/excel');
Offline.registerMimeType('.xll','application/x-excel');
Offline.registerMimeType('.xll','application/vnd.ms-excel');
Offline.registerMimeType('.xll','application/excel');
Offline.registerMimeType('.xlk','application/x-excel');
Offline.registerMimeType('.xlk','application/excel');
Offline.registerMimeType('.xld','application/x-excel');
Offline.registerMimeType('.xld','application/excel');
Offline.registerMimeType('.xlc','application/x-excel');
Offline.registerMimeType('.xlc','application/vnd.ms-excel');
Offline.registerMimeType('.xlc','application/excel');
Offline.registerMimeType('.xlb','application/x-excel');
Offline.registerMimeType('.xlb','application/vnd.ms-excel');
Offline.registerMimeType('.xlb','application/excel');
Offline.registerMimeType('.xla','application/x-msexcel');
Offline.registerMimeType('.xla','application/x-excel');
Offline.registerMimeType('.xla','application/excel');
Offline.registerMimeType('.xl','application/excel');
Offline.registerMimeType('.xif','image/vnd.xiff');
Offline.registerMimeType('.xgz','xgl/drawing');
Offline.registerMimeType('.xdr','video/x-amt-demorun');
Offline.registerMimeType('.xbm','image/xbm');
Offline.registerMimeType('.xbm','image/x-xbm');
Offline.registerMimeType('.xbm','image/x-xbitmap');
Offline.registerMimeType('.wtk','application/x-wintalk');
Offline.registerMimeType('.wsrc','application/x-wais-source');
Offline.registerMimeType('.wsc','text/scriplet');
Offline.registerMimeType('.wrz','x-world/x-vrml');
Offline.registerMimeType('.wrz','model/vrml');
Offline.registerMimeType('.wrl','x-world/x-vrml');
Offline.registerMimeType('.wrl','model/vrml');
Offline.registerMimeType('.wrl','application/x-world');
Offline.registerMimeType('.wri','application/x-wri');
Offline.registerMimeType('.wri','application/mswrite');
Offline.registerMimeType('.wq1','application/x-lotus');
Offline.registerMimeType('.wpd','application/x-wpwin');
Offline.registerMimeType('.wpd','application/wordperfect');
Offline.registerMimeType('.wp6','application/wordperfect');
Offline.registerMimeType('.wp5','application/wordperfect6.0');
Offline.registerMimeType('.wp5','application/wordperfect');
Offline.registerMimeType('.wp','application/wordperfect');
Offline.registerMimeType('.word','application/msword');
Offline.registerMimeType('.wmlsc','application/vnd.wap.wmlscriptc');
Offline.registerMimeType('.wmls','text/vnd.wap.wmlscript');
Offline.registerMimeType('.wmlc','application/vnd.wap.wmlc');
Offline.registerMimeType('.wml','text/vnd.wap.wml');
Offline.registerMimeType('.wmf','windows/metafile');
Offline.registerMimeType('.wk1','application/x-123');
Offline.registerMimeType('.wiz','application/msword');
Offline.registerMimeType('.web','application/vnd.xara');
Offline.registerMimeType('.wbmp','image/vnd.wap.wbmp');
Offline.registerMimeType('.wb1','application/x-qpro');
Offline.registerMimeType('.wav','audio/x-wav');
Offline.registerMimeType('.wav','audio/wav');
Offline.registerMimeType('.w6w','application/msword');
Offline.registerMimeType('.w61','application/wordperfect6.1');
Offline.registerMimeType('.w60','application/wordperfect6.0');
Offline.registerMimeType('.vsw','application/x-visio');
Offline.registerMimeType('.vst','application/x-visio');
Offline.registerMimeType('.vsd','application/x-visio');
Offline.registerMimeType('.vrt','x-world/x-vrt');
Offline.registerMimeType('.vrml','x-world/x-vrml');
Offline.registerMimeType('.vrml','model/vrml');
Offline.registerMimeType('.vrml','application/x-vrml');
Offline.registerMimeType('.vql','audio/x-twinvq-plugin');
Offline.registerMimeType('.vqf','audio/x-twinvq');
Offline.registerMimeType('.vqe','audio/x-twinvq-plugin');
Offline.registerMimeType('.vox','audio/voxware');
Offline.registerMimeType('.vos','video/vosaic');
Offline.registerMimeType('.voc','audio/x-voc');
Offline.registerMimeType('.voc','audio/voc');
Offline.registerMimeType('.vmf','application/vocaltec-media-file');
Offline.registerMimeType('.vmd','application/vocaltec-media-desc');
Offline.registerMimeType('.vivo','video/vnd.vivo');
Offline.registerMimeType('.vivo','video/vivo');
Offline.registerMimeType('.viv','video/vnd.vivo');
Offline.registerMimeType('.viv','video/vivo');
Offline.registerMimeType('.vew','application/groupwise');
Offline.registerMimeType('.vdo','video/vdo');
Offline.registerMimeType('.vda','application/vda');
Offline.registerMimeType('.vcs','text/x-vcalendar');
Offline.registerMimeType('.vcd','application/x-cdlink');
Offline.registerMimeType('.uue','text/x-uuencode');
Offline.registerMimeType('.uu','text/x-uuencode');
Offline.registerMimeType('.uu','application/octet-stream');
Offline.registerMimeType('.ustar','multipart/x-ustar');
Offline.registerMimeType('.ustar','application/x-ustar');
Offline.registerMimeType('.uris','text/uri-list');
Offline.registerMimeType('.uri','text/uri-list');
Offline.registerMimeType('.unv','application/i-deas');
Offline.registerMimeType('.unis','text/uri-list');
Offline.registerMimeType('.uni','text/uri-list');
Offline.registerMimeType('.uil','text/x-uil');
Offline.registerMimeType('.txt','text/plain');
Offline.registerMimeType('.turbot','image/florian');
Offline.registerMimeType('.tsv','text/tab-separated-values');
Offline.registerMimeType('.tsp','audio/tsplayer');
Offline.registerMimeType('.tsp','application/dsptype');
Offline.registerMimeType('.tsi','audio/tsp-audio');
Offline.registerMimeType('.tr','application/x-troff');
Offline.registerMimeType('.tiff','image/x-tiff');
Offline.registerMimeType('.tiff','image/tiff');
Offline.registerMimeType('.tif','image/x-tiff');
Offline.registerMimeType('.tif','image/tiff');
Offline.registerMimeType('.tgz','application/x-compressed');
Offline.registerMimeType('.tgz','application/gnutar');
Offline.registerMimeType('.text','text/plain');
Offline.registerMimeType('.text','application/plain');
Offline.registerMimeType('.texinfo','application/x-texinfo');
Offline.registerMimeType('.texi','application/x-texinfo');
Offline.registerMimeType('.tex','application/x-tex');
Offline.registerMimeType('.tcsh','text/x-script.tcsh');
Offline.registerMimeType('.tcl','text/x-script.tcl');
Offline.registerMimeType('.tcl','application/x-tcl');
Offline.registerMimeType('.tbk','application/x-tbook');
Offline.registerMimeType('.tbk','application/toolbook');
Offline.registerMimeType('.tar','application/x-tar');
Offline.registerMimeType('.talk','text/x-speech');
Offline.registerMimeType('.t','application/x-troff');
Offline.registerMimeType('.swf','application/x-shockwave-flash');
Offline.registerMimeType('.svr','x-world/x-svr');
Offline.registerMimeType('.svr','application/x-world');
Offline.registerMimeType('.svf','image/x-dwg');
Offline.registerMimeType('.svf','image/vnd.dwg');
Offline.registerMimeType('.sv4crc','application/x-sv4crc');
Offline.registerMimeType('.sv4cpio','application/x-sv4cpio');
Offline.registerMimeType('.stp','application/step');
Offline.registerMimeType('.stl','application/x-navistyle');
Offline.registerMimeType('.stl','application/vnd.ms-pki.stl');
Offline.registerMimeType('.stl','application/sla');
Offline.registerMimeType('.step','application/step');
Offline.registerMimeType('.sst','application/vnd.ms-pki.certstore');
Offline.registerMimeType('.ssm','application/streamingmedia');
Offline.registerMimeType('.ssi','text/x-server-parsed-html');
Offline.registerMimeType('.src','application/x-wais-source');
Offline.registerMimeType('.sprite','application/x-sprite');
Offline.registerMimeType('.spr','application/x-sprite');
Offline.registerMimeType('.spl','application/futuresplash');
Offline.registerMimeType('.spc','text/x-speech');
Offline.registerMimeType('.spc','application/x-pkcs7-certificates');
Offline.registerMimeType('.sol','application/solids');
Offline.registerMimeType('.snd','audio/x-adpcm');
Offline.registerMimeType('.snd','audio/basic');
Offline.registerMimeType('.smil','application/smil');
Offline.registerMimeType('.smi','application/smil');
Offline.registerMimeType('.sl','application/x-seelogo');
Offline.registerMimeType('.skt','application/x-koan');
Offline.registerMimeType('.skp','application/x-koan');
Offline.registerMimeType('.skm','application/x-koan');
Offline.registerMimeType('.skd','application/x-koan');
Offline.registerMimeType('.sit','application/x-stuffit');
Offline.registerMimeType('.sit','application/x-sit');
Offline.registerMimeType('.sid','audio/x-psid');
Offline.registerMimeType('.shtml','text/x-server-parsed-html');
Offline.registerMimeType('.shtml','text/html');
Offline.registerMimeType('.shar','application/x-shar');
Offline.registerMimeType('.shar','application/x-bsh');
Offline.registerMimeType('.sh','text/x-script.sh');
Offline.registerMimeType('.sh','application/x-shar');
Offline.registerMimeType('.sh','application/x-sh');
Offline.registerMimeType('.sh','application/x-bsh');
Offline.registerMimeType('.sgml','text/x-sgml');
Offline.registerMimeType('.sgml','text/sgml');
Offline.registerMimeType('.sgm','text/x-sgml');
Offline.registerMimeType('.sgm','text/sgml');
Offline.registerMimeType('.set','application/set');
Offline.registerMimeType('.sea','application/x-sea');
Offline.registerMimeType('.sea','application/sea');
Offline.registerMimeType('.sdr','application/sounder');
Offline.registerMimeType('.sdp','application/x-sdp');
Offline.registerMimeType('.sdp','application/sdp');
Offline.registerMimeType('.sdml','text/plain');
Offline.registerMimeType('.scm','video/x-scm');
Offline.registerMimeType('.scm','text/x-script.scheme');
Offline.registerMimeType('.scm','text/x-script.guile');
Offline.registerMimeType('.scm','application/x-lotusscreencam');
Offline.registerMimeType('.sbk','application/x-tbook');
Offline.registerMimeType('.saveme','application/octet-stream');
Offline.registerMimeType('.s3m','audio/s3m');
Offline.registerMimeType('.s','text/x-asm');
Offline.registerMimeType('.rv','video/vnd.rn-realvideo');
Offline.registerMimeType('.rtx','text/richtext');
Offline.registerMimeType('.rtx','application/rtf');
Offline.registerMimeType('.rtf','text/richtext');
Offline.registerMimeType('.rtf','application/x-rtf');
Offline.registerMimeType('.rtf','application/rtf');
Offline.registerMimeType('.rt','text/vnd.rn-realtext');
Offline.registerMimeType('.rt','text/richtext');
Offline.registerMimeType('.rpm','audio/x-pn-realaudio-plugin');
Offline.registerMimeType('.rp','image/vnd.rn-realpix');
Offline.registerMimeType('.roff','application/x-troff');
Offline.registerMimeType('.rnx','application/vnd.rn-realplayer');
Offline.registerMimeType('.rng','application/vnd.nokia.ringing-tone');
Offline.registerMimeType('.rng','application/ringing-tones');
Offline.registerMimeType('.rmp','audio/x-pn-realaudio-plugin');
Offline.registerMimeType('.rmp','audio/x-pn-realaudio');
Offline.registerMimeType('.rmm','audio/x-pn-realaudio');
Offline.registerMimeType('.rmi','audio/mid');
Offline.registerMimeType('.rm','audio/x-pn-realaudio');
Offline.registerMimeType('.rm','application/vnd.rn-realmedia');
Offline.registerMimeType('.rgb','image/x-rgb');
Offline.registerMimeType('.rf','image/vnd.rn-realflash');
Offline.registerMimeType('.rexx','text/x-script.rexx');
Offline.registerMimeType('.rast','image/cmu-raster');
Offline.registerMimeType('.ras','image/x-cmu-raster');
Offline.registerMimeType('.ras','image/cmu-raster');
Offline.registerMimeType('.ras','application/x-cmu-raster');
Offline.registerMimeType('.ram','audio/x-pn-realaudio');
Offline.registerMimeType('.ra','audio/x-realaudio');
Offline.registerMimeType('.ra','audio/x-pn-realaudio-plugin');
Offline.registerMimeType('.ra','audio/x-pn-realaudio');
Offline.registerMimeType('.qtif','image/x-quicktime');
Offline.registerMimeType('.qti','image/x-quicktime');
Offline.registerMimeType('.qtc','video/x-qtc');
Offline.registerMimeType('.qt','video/quicktime');
Offline.registerMimeType('.qif','image/x-quicktime');
Offline.registerMimeType('.qd3d','x-world/x-3dmf');
Offline.registerMimeType('.qd3','x-world/x-3dmf');
Offline.registerMimeType('.qcp','audio/vnd.qcelp');
Offline.registerMimeType('.pyc','applicaiton/x-bytecode.python');
Offline.registerMimeType('.py','text/x-script.phyton');
Offline.registerMimeType('.pwz','application/vnd.ms-powerpoint');
Offline.registerMimeType('.pvu','paleovu/x-pv');
Offline.registerMimeType('.psd','application/octet-stream');
Offline.registerMimeType('.ps','application/postscript');
Offline.registerMimeType('.prt','application/pro_eng');
Offline.registerMimeType('.pre','application/x-freelance');
Offline.registerMimeType('.ppz','application/mspowerpoint');
Offline.registerMimeType('.ppt','application/x-mspowerpoint');
Offline.registerMimeType('.ppt','application/vnd.ms-powerpoint');
Offline.registerMimeType('.ppt','application/powerpoint');
Offline.registerMimeType('.ppt','application/mspowerpoint');
Offline.registerMimeType('.pps','application/vnd.ms-powerpoint');
Offline.registerMimeType('.pps','application/mspowerpoint');
Offline.registerMimeType('.ppm','image/x-portable-pixmap');
Offline.registerMimeType('.ppa','application/vnd.ms-powerpoint');
Offline.registerMimeType('.pov','model/x-pov');
Offline.registerMimeType('.pot','application/vnd.ms-powerpoint');
Offline.registerMimeType('.pot','application/mspowerpoint');
Offline.registerMimeType('.pnm','image/x-portable-anymap');
Offline.registerMimeType('.pnm','application/x-portable-anymap');
Offline.registerMimeType('.png','image/png');
Offline.registerMimeType('.pm5','application/x-pagemaker');
Offline.registerMimeType('.pm4','application/x-pagemaker');
Offline.registerMimeType('.pm','text/x-script.perl-module');
Offline.registerMimeType('.pm','image/x-xpixmap');
Offline.registerMimeType('.plx','application/x-pixclscript');
Offline.registerMimeType('.pl','text/x-script.perl');
Offline.registerMimeType('.pl','text/plain');
Offline.registerMimeType('.pko','application/vnd.ms-pki.pko');
Offline.registerMimeType('.pkg','application/x-newton-compatible-pkg');
Offline.registerMimeType('.pict','image/pict');
Offline.registerMimeType('.pic','image/pict');
Offline.registerMimeType('.pgm','image/x-portable-greymap');
Offline.registerMimeType('.pgm','image/x-portable-graymap');
Offline.registerMimeType('.pfunk','audio/make.my.funk');
Offline.registerMimeType('.pfunk','audio/make');
Offline.registerMimeType('.pdf','application/pdf');
Offline.registerMimeType('.pdb','chemical/x-pdb');
Offline.registerMimeType('.pcx','image/x-pcx');
Offline.registerMimeType('.pct','image/x-pict');
Offline.registerMimeType('.pcl','application/x-pcl');
Offline.registerMimeType('.pcl','application/vnd.hp-pcl');
Offline.registerMimeType('.pbm','image/x-portable-bitmap');
Offline.registerMimeType('.pas','text/pascal');
Offline.registerMimeType('.part','application/pro_eng');
Offline.registerMimeType('.p7s','application/pkcs7-signature');
Offline.registerMimeType('.p7r','application/x-pkcs7-certreqresp');
Offline.registerMimeType('.p7m','application/x-pkcs7-mime');
Offline.registerMimeType('.p7m','application/pkcs7-mime');
Offline.registerMimeType('.p7c','application/x-pkcs7-mime');
Offline.registerMimeType('.p7c','application/pkcs7-mime');
Offline.registerMimeType('.p7a','application/x-pkcs7-signature');
Offline.registerMimeType('.p12','application/x-pkcs12');
Offline.registerMimeType('.p12','application/pkcs-12');
Offline.registerMimeType('.p10','application/x-pkcs10');
Offline.registerMimeType('.p10','application/pkcs10');
Offline.registerMimeType('.p','text/x-pascal');
Offline.registerMimeType('.omcr','application/x-omcregerator');
Offline.registerMimeType('.omcd','application/x-omcdatamaker');
Offline.registerMimeType('.omc','application/x-omc');
Offline.registerMimeType('.oda','application/oda');
Offline.registerMimeType('.o','application/octet-stream');
Offline.registerMimeType('.nvd','application/x-navidoc');
Offline.registerMimeType('.nsc','application/x-conference');
Offline.registerMimeType('.nix','application/x-mix-transfer');
Offline.registerMimeType('.niff','image/x-niff');
Offline.registerMimeType('.nif','image/x-niff');
Offline.registerMimeType('.ncm','application/vnd.nokia.configuration-message');
Offline.registerMimeType('.nc','application/x-netcdf');
Offline.registerMimeType('.naplps','image/naplps');
Offline.registerMimeType('.nap','image/naplps');
Offline.registerMimeType('.mzz','application/x-vnd.audioexplosion.mzz');
Offline.registerMimeType('.my','audio/make');
Offline.registerMimeType('.mv','video/x-sgi-movie');
Offline.registerMimeType('.ms','application/x-troff-ms');
Offline.registerMimeType('.mrc','application/marc');
Offline.registerMimeType('.mpx','application/x-project');
Offline.registerMimeType('.mpv','application/x-project');
Offline.registerMimeType('.mpt','application/x-project');
Offline.registerMimeType('.mpp','application/vnd.ms-project');
Offline.registerMimeType('.mpga','audio/mpeg');
Offline.registerMimeType('.mpg','video/mpeg');
Offline.registerMimeType('.mpg','audio/mpeg');
Offline.registerMimeType('.mpeg','video/mpeg');
Offline.registerMimeType('.mpe','video/mpeg');
Offline.registerMimeType('.mpc','application/x-project');
Offline.registerMimeType('.mpa','video/mpeg');
Offline.registerMimeType('.mpa','audio/mpeg');
Offline.registerMimeType('.mp3','video/x-mpeg');
Offline.registerMimeType('.mp3','video/mpeg');
Offline.registerMimeType('.mp3','audio/x-mpeg-3');
Offline.registerMimeType('.mp3','audio/mpeg3');
Offline.registerMimeType('.mp2','video/x-mpeq2a');
Offline.registerMimeType('.mp2','video/x-mpeg');
Offline.registerMimeType('.mp2','video/mpeg');
Offline.registerMimeType('.mp2','audio/x-mpeg');
Offline.registerMimeType('.mp2','audio/mpeg');
Offline.registerMimeType('.movie','video/x-sgi-movie');
Offline.registerMimeType('.mov','video/quicktime');
Offline.registerMimeType('.moov','video/quicktime');
Offline.registerMimeType('.mod','audio/x-mod');
Offline.registerMimeType('.mod','audio/mod');
Offline.registerMimeType('.mme','application/base64');
Offline.registerMimeType('.mm','application/x-meme');
Offline.registerMimeType('.mm','application/base64');
Offline.registerMimeType('.mjpg','video/x-motion-jpeg');
Offline.registerMimeType('.mjf','audio/x-vnd.audioexplosion.mjuicemediafile');
Offline.registerMimeType('.mime','www/mime');
Offline.registerMimeType('.mime','message/rfc822');
Offline.registerMimeType('.mif','application/x-mif');
Offline.registerMimeType('.mif','application/x-frame');
Offline.registerMimeType('.midi','x-music/x-midi');
Offline.registerMimeType('.midi','music/crescendo');
Offline.registerMimeType('.midi','audio/x-midi');
Offline.registerMimeType('.midi','audio/x-mid');
Offline.registerMimeType('.midi','audio/midi');
Offline.registerMimeType('.midi','application/x-midi');
Offline.registerMimeType('.mid','x-music/x-midi');
Offline.registerMimeType('.mid','music/crescendo');
Offline.registerMimeType('.mid','audio/x-midi');
Offline.registerMimeType('.mid','audio/x-mid');
Offline.registerMimeType('.mid','audio/midi');
Offline.registerMimeType('.mid','application/x-midi');
Offline.registerMimeType('.mhtml','message/rfc822');
Offline.registerMimeType('.mht','message/rfc822');
Offline.registerMimeType('.me','application/x-troff-me');
Offline.registerMimeType('.mcp','application/netmc');
Offline.registerMimeType('.mcf','text/mcf');
Offline.registerMimeType('.mcf','image/vasa');
Offline.registerMimeType('.mcd','application/x-mathcad');
Offline.registerMimeType('.mcd','application/mcad');
Offline.registerMimeType('.mc$','application/x-magic-cap-package-1.0');
Offline.registerMimeType('.mbd','application/mbedlet');
Offline.registerMimeType('.mar','text/plain');
Offline.registerMimeType('.map','application/x-navimap');
Offline.registerMimeType('.man','application/x-troff-man');
Offline.registerMimeType('.m3u','audio/x-mpequrl');
Offline.registerMimeType('.m2v','video/mpeg');
Offline.registerMimeType('.m2a','audio/mpeg');
Offline.registerMimeType('.m1v','video/mpeg');
Offline.registerMimeType('.m','text/x-m');
Offline.registerMimeType('.m','text/plain');
Offline.registerMimeType('.lzx','application/x-lzx');
Offline.registerMimeType('.lzx','application/octet-stream');
Offline.registerMimeType('.lzx','application/lzx');
Offline.registerMimeType('.lzh','application/x-lzh');
Offline.registerMimeType('.lzh','application/octet-stream');
Offline.registerMimeType('.ltx','application/x-latex');
Offline.registerMimeType('.lsx','text/x-la-asf');
Offline.registerMimeType('.lst','text/plain');
Offline.registerMimeType('.lsp','text/x-script.lisp');
Offline.registerMimeType('.lsp','application/x-lisp');
Offline.registerMimeType('.log','text/plain');
Offline.registerMimeType('.lma','audio/x-nspaudio');
Offline.registerMimeType('.lma','audio/nspaudio');
Offline.registerMimeType('.list','text/plain');
Offline.registerMimeType('.lhx','application/octet-stream');
Offline.registerMimeType('.lha','application/x-lha');
Offline.registerMimeType('.lha','application/octet-stream');
Offline.registerMimeType('.lha','application/lha');
Offline.registerMimeType('.latex','application/x-latex');
Offline.registerMimeType('.lam','audio/x-liveaudio');
Offline.registerMimeType('.la','audio/x-nspaudio');
Offline.registerMimeType('.la','audio/nspaudio');
Offline.registerMimeType('.ksh','text/x-script.ksh');
Offline.registerMimeType('.ksh','application/x-ksh');
Offline.registerMimeType('.kar','music/x-karaoke');
Offline.registerMimeType('.kar','audio/midi');
Offline.registerMimeType('.jut','image/jutvision');
Offline.registerMimeType('.js','text/ecmascript');
Offline.registerMimeType('.js','text/javascript');
Offline.registerMimeType('.js','application/ecmascript');
Offline.registerMimeType('.js','application/javascript');
Offline.registerMimeType('.js','application/x-javascript');
Offline.registerMimeType('.jps','image/x-jps');
Offline.registerMimeType('.jpg','image/pjpeg');
Offline.registerMimeType('.jpg','image/jpeg');
Offline.registerMimeType('.jpeg','image/pjpeg');
Offline.registerMimeType('.jpeg','image/jpeg');
Offline.registerMimeType('.jpe','image/pjpeg');
Offline.registerMimeType('.jpe','image/jpeg');
Offline.registerMimeType('.jfif-tbnl','image/jpeg');
Offline.registerMimeType('.jfif','image/pjpeg');
Offline.registerMimeType('.jfif','image/jpeg');
Offline.registerMimeType('.jcm','application/x-java-commerce');
Offline.registerMimeType('.java','text/x-java-source');
Offline.registerMimeType('.java','text/plain');
Offline.registerMimeType('.jav','text/x-java-source');
Offline.registerMimeType('.jav','text/plain');
Offline.registerMimeType('.jam','audio/x-jam');
Offline.registerMimeType('.ivy','application/x-livescreen');
Offline.registerMimeType('.ivr','i-world/i-vrml');
Offline.registerMimeType('.iv','application/x-inventor');
Offline.registerMimeType('.it','audio/it');
Offline.registerMimeType('.isu','video/x-isvideo');
Offline.registerMimeType('.ip','application/x-ip2');
Offline.registerMimeType('.ins','application/x-internett-signup');
Offline.registerMimeType('.inf','application/inf');
Offline.registerMimeType('.imap','application/x-httpd-imap');
Offline.registerMimeType('.ima','application/x-ima');
Offline.registerMimeType('.igs','model/iges');
Offline.registerMimeType('.igs','application/iges');
Offline.registerMimeType('.iges','model/iges');
Offline.registerMimeType('.iges','application/iges');
Offline.registerMimeType('.iefs','image/ief');
Offline.registerMimeType('.ief','image/ief');
Offline.registerMimeType('.idc','text/plain');
Offline.registerMimeType('.ico','image/x-icon');
Offline.registerMimeType('.ice','x-conference/x-cooltalk');
Offline.registerMimeType('.htx','text/html');
Offline.registerMimeType('.htt','text/webviewhtml');
Offline.registerMimeType('.htmls','text/html');
Offline.registerMimeType('.html','text/html');
Offline.registerMimeType('.htm','text/html');
Offline.registerMimeType('.htc','text/x-component');
Offline.registerMimeType('.hta','application/hta');
Offline.registerMimeType('.hqx','application/x-mac-binhex40');
Offline.registerMimeType('.hqx','application/x-binhex40');
Offline.registerMimeType('.hqx','application/mac-binhex40');
Offline.registerMimeType('.hqx','application/mac-binhex');
Offline.registerMimeType('.hqx','application/binhex4');
Offline.registerMimeType('.hqx','application/binhex');
Offline.registerMimeType('.hpgl','application/vnd.hp-hpgl');
Offline.registerMimeType('.hpg','application/vnd.hp-hpgl');
Offline.registerMimeType('.hlp','application/x-winhelp');
Offline.registerMimeType('.hlp','application/x-helpfile');
Offline.registerMimeType('.hlp','application/hlp');
Offline.registerMimeType('.hlb','text/x-script');
Offline.registerMimeType('.hh','text/x-h');
Offline.registerMimeType('.hh','text/plain');
Offline.registerMimeType('.hgl','application/vnd.hp-hpgl');
Offline.registerMimeType('.help','application/x-helpfile');
Offline.registerMimeType('.hdf','application/x-hdf');
Offline.registerMimeType('.h','text/x-h');
Offline.registerMimeType('.h','text/plain');
Offline.registerMimeType('.gzip','multipart/x-gzip');
Offline.registerMimeType('.gzip','application/x-gzip');
Offline.registerMimeType('.gz','application/x-gzip');
Offline.registerMimeType('.gz','application/x-compressed');
Offline.registerMimeType('.gtar','application/x-gtar');
Offline.registerMimeType('.gss','application/x-gss');
Offline.registerMimeType('.gsp','application/x-gsp');
Offline.registerMimeType('.gsm','audio/x-gsm');
Offline.registerMimeType('.gsd','audio/x-gsm');
Offline.registerMimeType('.gl','video/x-gl');
Offline.registerMimeType('.gl','video/gl');
Offline.registerMimeType('.gif','image/gif');
Offline.registerMimeType('.g3','image/g3fax');
Offline.registerMimeType('.g','text/plain');
Offline.registerMimeType('.funk','audio/make');
Offline.registerMimeType('.frl','application/freeloader');
Offline.registerMimeType('.fpx','image/vnd.net-fpx');
Offline.registerMimeType('.fpx','image/vnd.fpx');
Offline.registerMimeType('.for','text/x-fortran');
Offline.registerMimeType('.for','text/plain');
Offline.registerMimeType('.fmf','video/x-atomic3d-feature');
Offline.registerMimeType('.flx','text/vnd.fmi.flexstor');
Offline.registerMimeType('.flo','image/florian');
Offline.registerMimeType('.fli','video/x-fli');
Offline.registerMimeType('.fli','video/fli');
Offline.registerMimeType('.fif','image/fif');
Offline.registerMimeType('.fif','application/fractals');
Offline.registerMimeType('.fdf','application/vnd.fdf');
Offline.registerMimeType('.f90','text/x-fortran');
Offline.registerMimeType('.f90','text/plain');
Offline.registerMimeType('.f77','text/x-fortran');
Offline.registerMimeType('.f','text/x-fortran');
Offline.registerMimeType('.f','text/plain');
Offline.registerMimeType('.exe','application/octet-stream');
Offline.registerMimeType('.evy','application/x-envoy');
Offline.registerMimeType('.evy','application/envoy');
Offline.registerMimeType('.etx','text/x-setext');
Offline.registerMimeType('.es','application/x-esrehber');
Offline.registerMimeType('.eps','application/postscript');
Offline.registerMimeType('.env','application/x-envoy');
Offline.registerMimeType('.elc','application/x-elc');
Offline.registerMimeType('.elc','application/x-bytecode.elisp (compiled elisp)');
Offline.registerMimeType('.el','text/x-script.elisp');
Offline.registerMimeType('.dxr','application/x-director');
Offline.registerMimeType('.dxf','image/x-dwg');
Offline.registerMimeType('.dxf','image/vnd.dwg');
Offline.registerMimeType('.dxf','application/dxf');
Offline.registerMimeType('.dwg','image/x-dwg');
Offline.registerMimeType('.dwg','image/vnd.dwg');
Offline.registerMimeType('.dwg','application/acad');
Offline.registerMimeType('.dwf','model/vnd.dwf');
Offline.registerMimeType('.dwf','drawing/x-dwf (old)');
Offline.registerMimeType('.dvi','application/x-dvi');
Offline.registerMimeType('.dv','video/x-dv');
Offline.registerMimeType('.dump','application/octet-stream');
Offline.registerMimeType('.drw','application/drafting');
Offline.registerMimeType('.dp','application/commonground');
Offline.registerMimeType('.dot','application/msword');
Offline.registerMimeType('.doc','application/msword');
Offline.registerMimeType('.dl','video/x-dl');
Offline.registerMimeType('.dl','video/dl');
Offline.registerMimeType('.dir','application/x-director');
Offline.registerMimeType('.dif','video/x-dv');
Offline.registerMimeType('.der','application/x-x509-ca-cert');
Offline.registerMimeType('.def','text/plain');
Offline.registerMimeType('.deepv','application/x-deepv');
Offline.registerMimeType('.dcr','application/x-director');
Offline.registerMimeType('.cxx','text/plain');
Offline.registerMimeType('.css','text/css');
Offline.registerMimeType('.css','application/x-pointplus');
Offline.registerMimeType('.csh','text/x-script.csh');
Offline.registerMimeType('.csh','application/x-csh');
Offline.registerMimeType('.crt','application/x-x509-user-cert');
Offline.registerMimeType('.crt','application/x-x509-ca-cert');
Offline.registerMimeType('.crt','application/pkix-cert');
Offline.registerMimeType('.crl','application/pkix-crl');
Offline.registerMimeType('.crl','application/pkcs-crl');
Offline.registerMimeType('.cpt','application/x-cpt');
Offline.registerMimeType('.cpt','application/x-compactpro');
Offline.registerMimeType('.cpt','application/mac-compactpro');
Offline.registerMimeType('.cpp','text/x-c');
Offline.registerMimeType('.cpio','application/x-cpio');
Offline.registerMimeType('.conf','text/plain');
Offline.registerMimeType('.com','text/plain');
Offline.registerMimeType('.com','application/octet-stream');
Offline.registerMimeType('.class','application/x-java-class');
Offline.registerMimeType('.class','application/java-byte-code');
Offline.registerMimeType('.class','application/java');
Offline.registerMimeType('.chat','application/x-chat');
Offline.registerMimeType('.cha','application/x-chat');
Offline.registerMimeType('.cer','application/x-x509-ca-cert');
Offline.registerMimeType('.cer','application/pkix-cert');
Offline.registerMimeType('.cdf','application/x-netcdf');
Offline.registerMimeType('.cdf','application/x-cdf');
Offline.registerMimeType('.cdf','application/cdf');
Offline.registerMimeType('.cco','application/x-cocoa');
Offline.registerMimeType('.ccad','application/clariscad');
Offline.registerMimeType('.cc','text/x-c');
Offline.registerMimeType('.cc','text/plain');
Offline.registerMimeType('.cat','application/vnd.ms-pki.seccat');
Offline.registerMimeType('.c++','text/plain');
Offline.registerMimeType('.c','text/x-c');
Offline.registerMimeType('.c','text/plain');
Offline.registerMimeType('.bz2','application/x-bzip2');
Offline.registerMimeType('.bz','application/x-bzip');
Offline.registerMimeType('.bsh','application/x-bsh');
Offline.registerMimeType('.boz','application/x-bzip2');
Offline.registerMimeType('.book','application/book');
Offline.registerMimeType('.boo','application/book');
Offline.registerMimeType('.bmp','image/x-windows-bmp');
Offline.registerMimeType('.bmp','image/bmp');
Offline.registerMimeType('.bm','image/bmp');
Offline.registerMimeType('.bin','application/x-macbinary');
Offline.registerMimeType('.bin','application/x-binary');
Offline.registerMimeType('.bin','application/octet-stream');
Offline.registerMimeType('.bin','application/macbinary');
Offline.registerMimeType('.bin','application/mac-binary');
Offline.registerMimeType('.bcpio','application/x-bcpio');
Offline.registerMimeType('.avs','video/avs-video');
Offline.registerMimeType('.avi','video/x-msvideo');
Offline.registerMimeType('.avi','video/msvideo');
Offline.registerMimeType('.avi','video/avi');
Offline.registerMimeType('.avi','application/x-troff-msvideo');
Offline.registerMimeType('.au','audio/x-au');
Offline.registerMimeType('.au','audio/basic');
Offline.registerMimeType('.asx','video/x-ms-asf-plugin');
Offline.registerMimeType('.asx','video/x-ms-asf');
Offline.registerMimeType('.asx','application/x-mplayer2');
Offline.registerMimeType('.asp','text/asp');
Offline.registerMimeType('.asm','text/x-asm');
Offline.registerMimeType('.asf','video/x-ms-asf');
Offline.registerMimeType('.art','image/x-jg');
Offline.registerMimeType('.arj','application/octet-stream');
Offline.registerMimeType('.arj','application/arj');
Offline.registerMimeType('.arc','application/octet-stream');
Offline.registerMimeType('.aps','application/mime');
Offline.registerMimeType('.aos','application/x-nokia-9000-communicator-add-on-software');
Offline.registerMimeType('.ani','application/x-navi-animation');
Offline.registerMimeType('.aip','text/x-audiosoft-intra');
Offline.registerMimeType('.aim','application/x-aim');
Offline.registerMimeType('.aiff','audio/x-aiff');
Offline.registerMimeType('.aiff','audio/aiff');
Offline.registerMimeType('.aifc','audio/x-aiff');
Offline.registerMimeType('.aifc','audio/aiff');
Offline.registerMimeType('.aif','audio/x-aiff');
Offline.registerMimeType('.aif','audio/aiff');
Offline.registerMimeType('.ai','application/postscript');
Offline.registerMimeType('.afl','video/animaflex');
Offline.registerMimeType('.acgi','text/html');
Offline.registerMimeType('.abc','text/vnd.abc');
Offline.registerMimeType('.aas','application/x-authorware-seg');
Offline.registerMimeType('.aam','application/x-authorware-map');
Offline.registerMimeType('.aab','application/x-authorware-bin');
Offline.registerMimeType('.a','application/octet-stream');
Offline.registerMimeType('.3dmf','x-world/x-3dmf');
Offline.registerMimeType('.3dm','x-world/x-3dmf');


Offline.parseFileName = function(filename){
	var result = {};
	result.filename = filename;
	result.parts = filename.split('.');
	result.extension = '.'+result.parts[result.parts.length-1];
	return result;
}
Offline.getMimeTypeByExtention = function(filename){
	return Offline.MimeTypes[Offline.parseFileName(filename)['extension']];
};


// enables downloading data from within the browser
// this is awesome, tested in chrome
// simply use Offline.download(data, filename);
// its important to specify an filename, because a mimetype will be created from this.
Offline.download = function(data, filename){
	window.URL = window.webkitURL || window.URL;
	
	var mime_type = Offline.getMimeTypeByExtention(filename);
	if(!mime_type) return;
	
	// create the blob
	var blob = new Blob([data], {type: mime_type});
		
	// create dummy link 
	var a = document.createElement('a');
	a.download = filename;
	a.href = window.URL.createObjectURL(blob);
	a.dataset.downloadurl = [mime_type, a.download, a.href].join(':');
	document.body.appendChild(a);
	
	a.onclick = function(e) {
		setTimeout(function(){	window.URL.revokeObjectURL(a.href);document.body.removeChild(a);},1500);
	};
	
	// fake the (user)click
	a.click();
	
}
